package cn.com.joco.dk.webby.dao.user;

import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;

import com.github.miemiedev.mybatis.paginator.domain.PageList;

import cn.com.joco.dk.webby.model.User;

public interface UserDao {

	public PageList<User> findByPage(Pageable pageable, @Param(value = "name") String name,
			@Param(value = "status") int status);

	public User findById(@Param(value = "id") long id);

	public void updateStatus(@Param(value = "status") int status, @Param(value = "id") long id);

	public void updateLoginId(User user);

	public void save(User user);

	public void update(User user);
	
	public User findByloginId(@Param(value="loginId") String loginId);
}
